package com.zero.lite.dao.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zero
 * @since 2018-05-04
 */
@TableName("lite_cart")
public class Cart extends Model<Cart> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	@TableField("user_id")
	private Integer userId;
	@TableField("goods_id")
	private Integer goodsId;
	@TableField("goods_sn")
	private String goodsSn;
	@TableField("product_id")
	private Integer productId;
	@TableField("goods_name")
	private String goodsName;
	@TableField("retail_price")
	private BigDecimal retailPrice;
	private Integer number;
    /**
     * 规格属性组成的字符串，用来显示用
     */
	@TableField("goods_specification_values")
	private String goodsSpecificationValues;
	@TableField("goods_specification_ids")
	private String goodsSpecificationIds;
	private Integer checked;
	@TableField("pic_url")
	private String picUrl;
	@TableField("add_time")
	private LocalDateTime addTime;
	private Integer deleted;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public String getGoodsSn() {
		return goodsSn;
	}

	public void setGoodsSn(String goodsSn) {
		this.goodsSn = goodsSn;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public BigDecimal getRetailPrice() {
		return retailPrice;
	}

	public void setRetailPrice(BigDecimal retailPrice) {
		this.retailPrice = retailPrice;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getGoodsSpecificationValues() {
		return goodsSpecificationValues;
	}

	public void setGoodsSpecificationValues(String goodsSpecificationValues) {
		this.goodsSpecificationValues = goodsSpecificationValues;
	}

	public String getGoodsSpecificationIds() {
		return goodsSpecificationIds;
	}

	public void setGoodsSpecificationIds(String goodsSpecificationIds) {
		this.goodsSpecificationIds = goodsSpecificationIds;
	}

	public Integer getChecked() {
		return checked;
	}

	public void setChecked(Integer checked) {
		this.checked = checked;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public LocalDateTime getAddTime() {
		return addTime;
	}

	public void setAddTime(LocalDateTime addTime) {
		this.addTime = addTime;
	}

	public Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Cart{" +
			"id=" + id +
			", userId=" + userId +
			", goodsId=" + goodsId +
			", goodsSn=" + goodsSn +
			", productId=" + productId +
			", goodsName=" + goodsName +
			", retailPrice=" + retailPrice +
			", number=" + number +
			", goodsSpecificationValues=" + goodsSpecificationValues +
			", goodsSpecificationIds=" + goodsSpecificationIds +
			", checked=" + checked +
			", picUrl=" + picUrl +
			", addTime=" + addTime +
			", deleted=" + deleted +
			"}";
	}
}
